﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Yala.Models" namespace="Yala.Models.AuthProviders">
  <class name="AuthProvider" table="AuthProviders">
    <id name="Id" column="AuthProviderId" type="System.Guid" />
    <property name="Name" column="ProviderName" type="string" not-null="true" />
    <property name="ServiceUrl" column="ProviderServiceUrl" type="string" not-null="true" />
    <set name="Users" generic="true" inverse="true" >
      <key column="AuthProviderId" not-null="true"/>
      <one-to-many class="Yala.Models.Users.User"/>
    </set>
  </class>
</hibernate-mapping>